﻿
<?php

        $data = !empty($_POST['checked'])?$_POST['checked']:$_GET['id'];

          $_rows=del('role',$data);

           if($_rows>0){
          echo '<script>alert("批量删除成功");location.href="index.php?c=role&a=list&admin=1"; </script>';
            }else{
             echo '<script>alert("批量删除失败");history.go(-1) </script>';
         }








?>